home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The CICA Windows Explosion!
/
The CICA Windows Explosion! - Disc 2.iso
/
programr
/
rsxwdk2s.zip
/
RSXWDK
/
LIBSRC
/
SYSEMX
/
CHSIZE.C
< prev
next >
Wrap
C/C++ Source or Header
|
1994-10-17
|
222b
|
13 lines
#include <sys/emx.h>
#include <sys/doscalls.h>
int __chsize (int handle, long length)
{
char buf[4];
if (dos_lseek(handle, length, 0) != -1L)
return dos_write(handle, buf, 0);
else
return -1;
}